package com.enation.app.shop.front.policyInsurance.service.impl;

import com.enation.app.shop.front.policyInsurance.service.InsuranceProtCheckManage;
import com.enation.framework.database.IDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class InsuranceProtCheckService implements InsuranceProtCheckManage {
    @Autowired
    private IDaoSupport iDaoSupport;

    @Override
        public boolean updateInPolicyStatus(int inPolicy_id,Map inPolicyMap) {
            boolean flag;
            iDaoSupport.update("rbt_inpolicy",inPolicyMap,"warranty_id="+inPolicy_id);
            flag=true;
            return flag;
    }
}
